﻿using MediatR;
using PublicClass;
using System.ComponentModel.DataAnnotations;

namespace S.Produce.Api.Application.Commands.DeliveryCommands
{
    /// <summary>
    /// 添加种母分娩信息
    /// </summary>
    public class DeliveryCreateCommand : AuditFields, IRequest<int>
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        public int DeliveryId { get; set; }

        /// <summary>
        /// 种母耳号
        /// </summary>
        [StringLength(50)]
        public string? Earbugles {  get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        public string? Head { get; set; }

        /// <summary>
        /// 分娩日期
        /// </summary>
        public DateTime DeliveryDate { get; set; }

        /// <summary>
        /// 妊娠天数
        /// </summary>
        public int? GestationDays { get; set; }

        /// <summary>
        /// 分娩难易
        /// </summary>
        [StringLength(50)]
        public string? DifficultyOfDelivery { get; set; }

        /// <summary>
        /// 肥羊批次
        /// </summary>
        [StringLength(50)]
        public string? FatSheepLot { get; set; }

        /// <summary>
        /// 母性
        /// </summary>
        [StringLength(50)]
        public string? Maternity { get; set; }

        /// <summary>
        /// 泌乳
        /// </summary>
        [StringLength(50)]
        public string? Lactation { get; set; }

        /// <summary>
        /// 乳房炎
        /// </summary>
        [StringLength(50)]
        public string? Mastitis { get; set; }

        /// <summary>
        /// 窝号
        /// </summary>
        [StringLength(50)]
        public string? NestNumber { get; set; }

        /// <summary>
        /// 健羔数
        /// </summary>
        public int? HealthyLamb { get; set; }

        /// <summary>
        /// 弱羊数
        /// </summary>
        public int? WeakLamb { get; set; }

        /// <summary>
        /// 畸形数
        /// </summary>
        public int? Malformation { get; set; }

        /// <summary>
        /// 死胎数
        /// </summary>
        public int? DeadFetus { get; set; }

        /// <summary>
        /// 木乃伊数
        /// </summary>
        public int? MummyNumber { get; set; }

        /// <summary>
        /// 畸胎数
        /// </summary>
        public int? MalformedFetus { get; set; }

        /// <summary>
        /// 活羊羔
        /// </summary>
        public int? LiveLamb { get; set; }

        /// <summary>
        /// 窝总重
        /// </summary>
        public decimal? NestTotalWeight { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public bool? LambSex { get; set; }

        /// <summary>
        /// 当前栋舍
        /// </summary>
        [StringLength(50)]
        public string? CurrentBuilding { get; set; }

        /// <summary>
        /// 当前栏位
        /// </summary>
        [StringLength(50)]
        public string? CurrentField { get; set; }

        /// <summary>
        /// 转入栋舍
        /// </summary>
        [StringLength(50)]
        public string? OriginallyDorm { get; set; }

        /// <summary>
        /// 转入栏位
        /// </summary>
        [StringLength(50)]
        public string? OriginallyColumns { get; set; }
    }
}
